package com.huawei.appmarket.service.store.awk.bean;

import android.content.Context;
import com.huawei.appmarket.service.store.awk.widget.horizon.HorizontalCardConfig;
import java.util.List;
import o.cif;
import o.ContentManager;
import o.epr;
import o.epv;
import o.CollectCheck;
import o.ewm.d;

public class HorizonHomeCardBean extends BaseHorizontalCardBean<HorizonalHomeCardItemBean> {
    private static final long serialVersionUID = -6704369495217865068L;
    protected List<HorizonalHomeCardItemBean> list_;

    public int ʼˊ() {
        if (!epr.ˎ().ॱॱ()) {
            return 9;
        }
        if (this.maxFilterNum == -1) {
            Context ˋ = ContentManager.getInstant().getContext();
            this.maxFilterNum = (epv.ˏ(ˋ) / ˋ(ˋ)) + 1;
        }
        return this.maxFilterNum;
    }

    public List ʼᐝ() {
        return this.list_;
    }

    protected int ˋ(Context context) {
        return context.getResources().getDimensionPixelSize(d.ˏͺ) + epv.ʻ();
    }

    public Class<? extends cif> ߵ() {
        return HorizontalCardConfig.class;
    }

    public boolean ˋ(int i) {
        return super.ˋ(i) || CollectCheck.isEmpty(this.list_);
    }
}
